package yl.hs.bmipfull.pojo.material;

import org.springframework.lang.Nullable;
import yl.hs.bmipfull.annotations.DBField;
import yl.hs.bmipfull.annotations.DBTable;
import yl.hs.bmipfull.pojo.BaseEntity;

import java.util.Date;

/**
 * 作用:  采购需求信息实体类<br/>
 * 创建时间: 2021年06月18日 15时11分19秒 <br/>
 *
 * @author 张凯
 */
@DBTable(disName = "采购需求信息", mapCode = "purchase_require")
public class PurchaseRequireEntity extends BaseEntity {

    /**
     * 主键
     */
    @Nullable
    private Long id;
    /**
     * 编号
     */
    @DBField(disName = "采购需求信息编号", mapCode = "sn", isSerialNumber = true, isRequire = true, snPrefix = "CGXQ")
    private String sn;
    /**
     * 任务编号
     */
    private String taskSN;
    /**
     * 需求类型
     */
    private Short requireType;
    /**
     * 需求来源
     */
    private String requirFrom;
    /**
     * 需求说明
     */
    private String description;
    /**
     * 需求时间
     */
    private Date requirTime;
    /**
     * 发布时间
     */
    private Date releaseTime;
    /**
     * 需求状态
     */
    private Short state;

    public PurchaseRequireEntity() {
    }

    public PurchaseRequireEntity(String sn, String taskSN, Short requireType, String requirFrom, String description, Date requirTime, Date releaseTime, Short state) {
        this.sn = sn;
        this.taskSN = taskSN;
        this.requireType = requireType;
        this.requirFrom = requirFrom;
        this.description = description;
        this.requirTime = requirTime;
        this.releaseTime = releaseTime;
        this.state = state;


    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSn() {
        return this.sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getTaskSN() {
        return this.taskSN;
    }

    public void setTaskSN(String taskSN) {
        this.taskSN = taskSN;
    }

    public Short getRequireType() {
        return this.requireType;
    }

    public void setRequireType(Short requireType) {
        this.requireType = requireType;
    }

    public String getRequirFrom() {
        return this.requirFrom;
    }

    public void setRequirFrom(String requirFrom) {
        this.requirFrom = requirFrom;
    }

    public String getDescription() {
        return this.description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Date getRequirTime() {
        return this.requirTime;
    }

    public void setRequirTime(Date requirTime) {
        this.requirTime = requirTime;
    }

    public Date getReleaseTime() {
        return this.releaseTime;
    }

    public void setReleaseTime(Date releaseTime) {
        this.releaseTime = releaseTime;
    }

    public Short getState() {
        return this.state;
    }

    public void setState(Short state) {
        this.state = state;
    }
}